<?php

return array(
	"prepare" => '
$a1 = function () {};
$a2 = 5;
$a3 = 5.6;
$a4 = "asd";
$a5 = array(1,2,3);
$a6 = new StdClass();
$a7 = null;',
	"php" => 5,
	"name" => "Определение типа данных",
	"tests" => array(
		"is_null" => array(
			"code" => 'if(is_null($a7)){}',
			"i" => 1000,
			"desc" => "is_null",
		),
		"is_callable" => array(
			"code" => 'if(is_callable($a1)){}',
			"i" => 1000,
			"desc" => "is_callable",
		),
		"is_int" => array(
			"code" => 'if(is_int($a2)){}',
			"i" => 1000,
			"desc" => "is_int",
		),
		"is_float" => array(
			"code" => 'if(is_float($a3)){}',
			"i" => 1000,
			"desc" => "is_float",
		),
		"is_string" => array(
			"code" => 'if(is_string($a4)){}',
			"i" => 1000,
			"desc" => "is_string",
		),
		"is_array" => array(
			"code" => 'if(is_array($a5)){}',
			"i" => 1000,
			"desc" => "is_array",
		),
		"is_object" => array(
			"code" => 'if(is_object($a6)){}',
			"i" => 1000,
			"desc" => "is_object",
		)
	)
)
?>
